-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: a props object containing key
prop is spread into jsx
#49405
Conversation
Hey! I see that you made changes to our Form component. Make sure to update the docs in FORMS.md accordingly. Cheers! |
@jayeshmangwani Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
@jayeshmangwani I search through all usages of spread operator in the App and I only found 2 places having the issue. |
@gijoe0295 Please merge the latest main branch and push the code where this line needs to be changed. App/src/components/MenuItemList.tsx Line 87 in 37bf6b2
-key={menuItemProps.key ?? menuItemProps.title}
+key={key ?? menuItemProps.title}
|
@jayeshmangwani Updated. |
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid.movAndroid: mWeb ChromemWeb-chrome.moviOS: NativeiOS.moviOS: mWeb SafarimWeb-safari.movMacOS: Chrome / Safariweb.movMacOS: Desktopdesktop.mov |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/puneetlath in version: 9.0.39-0 🚀
|
🚀 Deployed to production by https://github.com/AndrewGable in version: 9.0.39-5 🚀
|
Details
Fixed Issues
$ #49064
PROPOSAL: #49064 (comment)
Tests
Warning: A props object containing a “key” prop is being spread into JSX
does not showWarning: A props object containing a “key” prop is being spread into JSX
does not showOffline tests
NA
QA Steps
NA
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
Screen.Recording.2024-09-19.at.02.36.37.mov
Android: mWeb Chrome
Screen.Recording.2024-09-19.at.02.39.33.mov
iOS: Native
Screen.Recording.2024-09-19.at.02.30.29.mov
Screen.Recording.2024-09-19.at.02.30.53.mov
iOS: mWeb Safari
Screen.Recording.2024-09-19.at.02.33.28.mp4
MacOS: Chrome / Safari
Screen.Recording.2024-09-19.at.02.29.23.mov
Screen.Recording.2024-09-19.at.02.29.07.mov
MacOS: Desktop
Untitled.mp4